import request from "@/utils/request";

export function phoneCode(params) {
    return request({
        url: `/tduck-api/project/phone/code/yxs`,
        method: "get",
        params,
    });
}

/**
 * 
 * @param {{phoneNumber: String, code: String}} data 
 * @returns 
 */
export function vaildPhoneCode(data) {
    return request({
        url: `/tduck-api/project/phone/code/check`,
        method: "post",
        data,
    });
}